import axios from 'axios';
import {ajax,base} from './config'

// 问题库
export const geteqList = params => { return ajax.getMinData({url:`${base}equipmentProblemController/datagrid.do`, params}); };
// 新增
export const addeqList = params => { return ajax.postData({url:`${base}equipmentProblemController/doAdd.do`, params}); };
// 跟踪处理
export const follow = params => { return ajax.postData({url:`${base}equipmentProblemController/doSaveTrack.do`, params}); };
// 消除验收
export const clear = params => { return ajax.postData({url:`${base}equipmentProblemController/doAccepter.do`, params}); };
// 删除
export const delteTable = params => { return ajax.postData({url:`${base}equipmentProblemController/doDel.do`, params}); };
// 查看详细 equipmentProblemController/getProblemTrackInfo.do
export const vieweqDetal2 = params => { return ajax.getMinData({url:`${base}/equipmentProblemController/getTrackList.do`, params}); };
// 导入
export const geteqInfo = params => { return ajax.postData({url:`${base}equipmentProblemController/upload`, params}); };
// 导出
export const geteqDownload = params => { return ajax.postData({url:`${base}equipmentProblemController/export.do`, params}); };
// 模板下载equipmentProblemController.do?download
export const geteqLoad = params => { return ajax.postData({url:`${base}equipmentProblemController/download.do`, params}); };
// 变电站 bsSubstationController.do?getList
export const getSub = params => { return ajax.getMinData({url:`${base}/bsSubstationController/getList.do`, params}); };
// 发现人员
export const getUse = params => { return ajax.getMinData({url:`${base}groupUserController.do?getAnnouncementList`, params}); };
// 消除验收获取信息
export const getEquipmentDetail = params => { return axios.post(`${base}/equipmentProblemController/getEquipmentDetail.do`, params); };
//获取问题类型
export const getProblemType = params => { return ajax.getMinData({url:`${base}/equipmentProblemController/getProblemType.do`, params}); };
